/*
 * QWidgetActionAdapter.h  0.4.0 / Nov 17, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QWIDGETACTIONADAPTER_H
#define QWIDGETACTIONADAPTER_H

#include "ComponentDelegate.h"

// QWidgetActionAdapter Class. -------------------------------------------------

/*!
 * \brief QWidget ActionAdapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QWidgetActionAdapter : public QWidgetAction
{
  Q_OBJECT
protected:
  friend class ComponentDelegate;  // uses constructor
  QWidgetActionAdapter(ComponentDelegate *parent);
  ~QWidgetActionAdapter();
protected:
  ComponentDelegate *parentDelegate();
protected:
  virtual QWidget *createWidget(QWidget *parent);
  virtual void deleteWidget(QWidget *widget);
};

#endif // QWIDGETACTIONADAPTER_H
